from applications.extensions import ma
from marshmallow import fields

# 情绪课程关键帧序列化
class EvalutionReferenceSchema(ma.Schema):
    evalution_index = fields.Integer()
    course_id = fields.Integer()
    evaluation_id = fields.Integer()
    evalution_period_start_time = fields.Str()
    evalution_period_end_time = fields.Str()
    reference = fields.Str()
    tone = fields.Str()

# 心理课程关键帧序列化
class EvalutionReferenceMenSchema(ma.Schema):
    evalution_index = fields.Integer()
    course_id = fields.Integer()
    evaluation_id = fields.Integer()
    evalution_period_start_time = fields.Str()
    evalution_period_end_time = fields.Str()
    reference = fields.Str()

# 动作反应训练关键帧序列化
class PointActionResponseSchema(ma.Schema):
    point_id = fields.Integer()
    course_id = fields.Integer()
    start_time = fields.Integer()
    end_time = fields.Integer()
    action_id= fields.Integer()
    scene_des = fields.String()

# 动作标准训练关键帧序列化
class KeyframeInfoSchema(ma.Schema):
    keyframe_id = fields.Integer()
    action_id = fields.Integer()
    keyframe_time = fields.Integer()
    keyframe_description = fields.Str()
    keyframe_focus = fields.Integer()

